package net.lab1024.sa.admin.module.shell;

import lombok.extern.slf4j.Slf4j;
import net.lab1024.sa.base.common.enumeration.ShellTypeEnum;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ShellService {

    private final ShellDao shellDao;

    public ShellService(ShellDao shellDao) {
        this.shellDao = shellDao;
    }

    public String getDeployCommandByUpstreamAndOsType(Integer upstream, String osType) {
        return shellDao.getCommandByShellTypeAndUpstreamAndOsType(ShellTypeEnum.DEPLOY.getValue(), upstream, osType);
    }
}
